//
//package com.rt.schedulebase.service.impl;
//import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
//import com.baomidou.mybatisplus.core.conditions.Wrapper;
//import java.util.Map;
//import java.util.HashMap;
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//import java.util.List;
//import com.rt.schedulebase.dto.ExamItemDto;
//import java.io.Serializable;
//import com.rt.schedulebase.service.IExamItemService;
//import com.rt.schedulebase.entity.ExamItem;
//import com.rt.schedulebase.mapper.ExamItemMapper;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//public class ExamItemServiceImpl extends ServiceImpl<ExamItemMapper, ExamItem> implements IExamItemService
//{
//@Override
//    public boolean insertSelective(final ExamItem examItem) {
//        return this.retBool(Integer.valueOf(((ExamItemMapper)this.baseMapper).insert(examItem)));
//    }
//
//@Override
//    public boolean deleteByPrimaryKey(final String key) {
//        return this.retBool(Integer.valueOf(((ExamItemMapper)this.baseMapper).deleteById((Serializable)key)));
//    }
//
//@Override
//    public boolean updateByPrimaryKeySelective(final ExamItem examItem) {
//        return this.retBool(Integer.valueOf(((ExamItemMapper)this.baseMapper).updateById(examItem)));
//    }
//
//@Override
//    public ExamItem selectByPrimaryKey(final String key) {
//        return (ExamItem)((ExamItemMapper)this.baseMapper).selectById((Serializable)key);
//    }
//
//@Override
//    public List<ExamItem> getList(final ExamItemDto dto) {
//        final QueryWrapper<ExamItem> qw = (QueryWrapper<ExamItem>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APPLY_NO", dto.getApplyNo());
//        map.put("ITEM_NO", dto.getItemNo());
//        qw.allEq((Map)map, false);
//        final List<ExamItem> list = (List<ExamItem>)((ExamItemMapper)this.baseMapper).selectList((Wrapper)qw);
//        return list;
//    }
//
//@Override
//    public List<ExamItem> getListAll() {
//        return (List<ExamItem>)((ExamItemMapper)this.baseMapper).selectList((Wrapper)null);
//    }
//
//@Override
//    public boolean delete(final ExamItem examItem) {
//        final UpdateWrapper<ExamItem> uw = (UpdateWrapper<ExamItem>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APPLY_NO", examItem.getApplyNo());
//        map.put("ITEM_NO", examItem.getItemNo());
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((ExamItemMapper)this.baseMapper).delete((Wrapper)uw)));
//    }
//
//@Override
//    public boolean update(final ExamItem examItem) {
//        final UpdateWrapper<ExamItem> uw = (UpdateWrapper<ExamItem>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APPLY_NO", examItem.getApplyNo());
//        map.put("ITEM_NO", examItem.getItemNo());
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((ExamItemMapper)this.baseMapper).update(examItem, (Wrapper)uw)));
//    }
//
//@Override
//    public ExamItem getInfo(final ExamItemDto dto) {
//        final QueryWrapper<ExamItem> qw = (QueryWrapper<ExamItem>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APPLY_NO", dto.getApplyNo());
//        map.put("ITEM_NO", dto.getItemNo());
//        qw.allEq((Map)map, false);
//        return (ExamItem)((ExamItemMapper)this.baseMapper).selectOne((Wrapper)qw);
//    }
//}
